// 入口文件
import "./mock";
import Vue from "vue";
import App from "./App.vue";
import Appss from "./Appss.vue";
import "./styles/global.less";
import router from "./router";
import store from "./store";
store.dispatch("setting/fetchSetting"); //全局调用
import showMessage from "./utils/showMessage";
Vue.prototype.$showMessage = showMessage;
import "./eventBus";
// 注册全局指令
import vLoading from "./directives/loading";
Vue.directive("loading", vLoading);
import vLazy from "./directives/lazy";
Vue.directive("lazy", vLazy);


new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");